package com.cloudbroker.bcs.platform.dav.bizexport.t2.business;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cloudbroker.bcs.common.jres.service.T2ServiceAPIAdapterBase;
import com.cloudbroker.bcs.platform.dav.bizapi.service.business.wechat.WeChatBizService;
import com.cloudbroker.bcs.platform.dav.bizapi.service.business.wechat.result.UserInfoByCode;
import com.cloudbroker.bcs.platform.dav.bizapi.service.business.wechat.vo.PayForm;
import com.cloudbroker.bcs.platform.dav.bizapi.service.business.wechat.vo.WechatCode;
import com.cloudbroker.bcs.platform.dav.bizapi.service.business.wechat.vo.WechatCodeTenant;
import com.cloudbroker.bcs.platform.dav.bizapi.service.business.wechat.vo.WechatPayCallback;
import com.cloudbroker.bcs.platform.dav.bizapi.service.export.vo.response.TongLianPayBackVo;
import com.cloudbroker.bcs.platform.dav.bizapi.t2service.business.WechatT2BizService;

@Service
public class WechatT2 extends T2ServiceAPIAdapterBase<WeChatBizService> implements WechatT2BizService {
    @Resource
    private WeChatBizService wechatBizService;
    
    @Override
    protected WeChatBizService getTargetService() {
        return wechatBizService;
    }
    
   /* @Override
    public Map<String, Object> wechatUserQuery(WechatUserForm param) {
        return callAPI2("wechatUserQuery", param);
    }
    */
    @Override
    public UserInfoByCode getUserinfoByCode(WechatCode param) {
        return wechatBizService.getUserinfoByCode(param);
    }

    @Override
    public UserInfoByCode getUserinfoByCodeTenant(WechatCodeTenant param) {
        return wechatBizService.getUserinfoByCodeTenant(param);
    }

    @Override
    public TongLianPayBackVo getPayData(PayForm param) {
        return wechatBizService.getPayData(param);
    }
    
    @Override
    public Map<String, Object> payCallback(WechatPayCallback param) {
       /* return wechatBizService.payCallback(param);*/
        return callAPI2("payCallback", param);
    }
}
